<?php
namespace app\home\model;
use think\Model;
use think\Db;

class ThemeModel extends Model{

    public function __construct(){
        parent::__construct();
    }

    // 主题推送
    public function getTheme(){
        $theme = Db::table('goods')
                ->where('is_del',0)
                ->where('is_push',1)
                ->order('create_time desc')
                ->limit('2')
                ->select();
        return $theme;
    }
}